/**
 * Created by Administrator on 2016/8/1.
 */
var BaseDao = require('../../base-dao/BaseDao');
//个人头像信息
exports.usermessage = function(userid,callback) {
    var sql="select * from tbl_user  where userid = '"+userid+"' and status=1";
    BaseDao.execQuery(sql, function(err, rows) {
        callback(err, rows);
    });
};

//添加用户信息
exports.adduser = function (obj,callback) {
    var sql = 'INSERT INTO tbl_user SET ?';
    BaseDao.execQuery(sql, obj, function (err, data) {
        callback(err, data);
    })
}